<?php $this->load->helper(array('form','form_formater'));?>
<h1>Add new Family</h1>

<?php
echo validation_errors();

echo $form->build();
//
//$attributes = array('id' => 'addfamily');
//echo form_open('email/send',$attributes);
//echo form_hidden('cmd', 'add');
//$fields = array("f_name"=>'First Name',"m_name"=>'Middle Name',"l_name"=>'Last Name',"gender"=>'Gender',"marital"=>"Marital");
//foreach($fields as $fld=>$label) {
//  echo form_row(form_label($label,$fld),form_input($fld));
//}
//echo form_submit('submit','Submit');
//echo form_close();